{include file="header.html"}
<script>
    $(function () {
        $("#th_time_from").datepicker({dateFormat: 'yy-mm-dd'});
        $("#th_time_to").datepicker({dateFormat: 'yy-mm-dd'});
        $("#add_time_from").datepicker({dateFormat: 'yy-mm-dd'});
        $("#add_time_to").datepicker({dateFormat: 'yy-mm-dd'});


    });

</script>
<div id="rightTop">
    <p>{$lang.reserve}</p>
    <ul class="subnav">
        <li><!--{if $wait_verify}--><a class="btn1" href="index.php?app=reserve">{$lang.manage}</a><!--{else}--><span>{$lang.manage}</span>
            <!--{/if}--></li>
        <!-- <li><a class="btn1" href="index.php?app=reserve&amp;act=add">{$lang.add}</a></li>-->
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get">
            <div class="left">
                <input type="hidden" name="app" value="reserve"/>
                <input type="hidden" name="act" value="index"/>

                <input class="queryInput"style="width: 120px" type="text" name="member_value" placeholder="{$lang.member_value}" value="{$member_value|escape}">
                <select class="querySelect" name="box_value">
                   <option value="">箱型</option>
                    {html_options options=$box_values selected=$box_value}
                </select>

                <input class="queryInput"style="width: 120px" type="text" name="ship_value" placeholder="{$lang.ship_value}" value="{$ship_value|escape}">
                <input class="queryInput"style="width: 120px" type="text" name="ship1_value" placeholder="{$lang.ship1_value}" value="{$ship1_value|escape}">
                {$lang.th_time_from}:
                <input class="queryInput" style="width:90px" type="text" value="{$query.th_time_from}"  id="th_time_from" name="th_time_from" class="pick_date" />
                &nbsp;- &nbsp;
                <input class="queryInput" style="width:90px" type="text" value="{$query.th_time_to}" id="th_time_to" name="th_time_to" class="pick_date" />
                {$lang.add_time_from}:
                <input class="queryInput" style="width:90px" type="text" value="{$query.add_time_from}"  id="add_time_from" name="add_time_from" class="pick_date" />
                &nbsp;- &nbsp;
                <input class="queryInput" style="width:90px" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />

                <input type="submit" class="formbtn" value="{$lang.query}"/>
            </div>
            <!--{if $filtered}-->
            <input class="formbtn" onclick='location="index.php?app=reserve"' type="button"
                   value="{$lang.cancel_query}">

            <!--{/if}-->
            <span>
              </span></form>
    </div>
    <div class="fontr">
        {if $reserves}{include file=page.top.html}{/if}
    </div>
    <div class="clear:both;"></div>
</div>
<div class="tdare">
    <table width="100%" cellspacing="0" class="dataTable">
        <!--{if $reserves}-->
        <tr class="tatr1">
            <td width="20" class="firstCell"></td>
            <td>{$lang.user_name}</td>
            <td>{$lang.vhccode}</td>
            <td>{$lang.tel}</td>
            <td>{$lang.box}</td>
            <td>{$lang.quantity}</td>
            <td>{$lang.company}</td>
            <td>{$lang.station}</td>
            <td>{$lang.ship_name}</td>
            <td>{$lang.voyage}</td>
            <td>{$lang.bill}</td>
            <td>{$lang.th_time}</td>
            <td>{$lang.add_time}</td>

            <!--   <td class="handler">{$lang.handler}</td>-->
        </tr>
        <!--{/if}-->
        <!--{foreach from=$reserves item=reserve}-->
        <tr class="tatr2">
            <td class="firstCell"></td>
            <td>{$reserve.user_name|escape}</td>
            <td>{$reserve.vhccode|escape}</td>
            <td>{$reserve.tel}</td>
            <td>{$reserve.box}</td>
            <td>{$reserve.quantity}</td>
            <td>{$reserve.company}</td>
            <td>{$reserve.station}</td>
            <td>{$reserve.ship_name|escape}({$reserve.ship_code})</td>
            <td>{$reserve.voyage}</td>
            <td>{$reserve.bill}</td>
            <td>{$reserve.th_time|date:Y-m-d H:i:s}</td>
            <td>{$reserve.add_time|date:Y-m-d H:i:s}</td>

            <!--  <td class="handler">

              <a href="index.php?app=reserve&amp;act=edit&amp;id={$reserve.reserve_id}">{$lang.edit}</a>  |  <a name="drop" href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=reserve&amp;act=drop&amp;id={$reserve.reserve_id}');">{$lang.drop}</a>

              <a href="index.php?app=reserve&amp;act=pass&amp;id={$reserve.reserve_id}">{$lang.pass}</a>  |  <a href="index.php?app=reserve&amp;act=refuse&amp;id={$reserve.reserve_id}">{$lang.refuse}</a>

              </td>-->
        </tr>
        <!--{foreachelse}-->
        <tr class="no_data">
            <td colspan="7">{$lang.no_data}</td>
        </tr>
        <!--{/foreach}-->
    </table>
    <!--{if $reserves}-->
    <div id="dataFuncs">
        <!--   <div id="batchAction" class="left paddingT15">

               <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=reserve&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />

           </div>-->
        <div class="pageLinks">
            {if $reserves}{include file=page.bottom.html}{/if}
        </div>
        <div class="clear:both;"></div>
    </div>
    <!--{/if}-->
    <div class="clear"></div>
</div>
{include file="footer.html"}
